package com.jeespring.admin.dao;

import com.jeespring.admin.entity.User;
import com.jeespring.admin.entity.UserExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * @title:
 * @description:
 * @author: 张朝阳
 * @date: 2019/5/1 13:09
 */
public interface UserDao {

    int countByExample(UserExample example);

    int deleteByExample(UserExample example);

    int deleteByPrimaryKey(Long id);

    int insert(User record);

    int insertSelective(User record);

    List<User> selectByExample(UserExample example);

    User selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);

    int updateByExample(@Param("record") User record, @Param("example") UserExample example);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List<User> findForPage(UserExample example);
}